package com.bustle.user.dto.user;

import java.util.Date;

import javax.xml.bind.annotation.XmlRootElement;

import com.bustle.user.data.User.Type;
import com.bustle.user.dto.address.AddressDto;

@XmlRootElement(name = "user")
public class UserDto
{
  public UserDto()
  {
  }

  public UserDto(int anId, Date aBirthday, String anEmail, String aFirstName, String aLastName, AddressDto anAddress, Type aType)
  {
    id = anId;
    birthday = aBirthday;
    email = anEmail;
    firstName = aFirstName;
    lastName = aLastName;
    address = anAddress;
    type = aType;
  }

  public int getId()
  {
    return id;
  }

  public void setId(int anId)
  {
    id = anId;
  }

  public Date getBirthday()
  {
    return birthday;
  }

  public void setBirthday(Date aBirthday)
  {
    birthday = aBirthday;
  }

  public String getEmail()
  {
    return email;
  }

  public void setEmail(String anEmail)
  {
    email = anEmail;
  }

  public String getFirstName()
  {
    return firstName;
  }

  public void setFirstName(String aFirstName)
  {
    firstName = aFirstName;
  }

  public String getLastName()
  {
    return lastName;
  }

  public void setLastName(String aLastName)
  {
    lastName = aLastName;
  }

  public AddressDto getAddress()
  {
    return address;
  }

  public void setAddress(AddressDto anAddress)
  {
    address = anAddress;
  }

  public Type getType()
  {
    return type;
  }

  public void setType(Type aType)
  {
    type = aType;
  }

  @Override
  public String toString()
  {
    return firstName + " " + lastName;
  }

  private int id;
  private Date birthday;
  private String email;
  private String firstName;
  private String lastName;
  private AddressDto address;
  private Type type;
}
